<template>
	<view class="">
		<view class="q">
			<uni-easyinput placeholder="请输入手机号" prefixIcon="phone"  v-model="mobile" ></uni-easyinput>
		</view>
		<button class="xia" @click="aaa">下一步</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mobile: '',
			}
		},
		methods: {
			aaa() {
				// debugger
				if(this.mobile.length === 11){
					// debugger
					uni.navigateTo({
						url: '/pages/zhuce/regie?mobile=' + this.mobile
					})
					
				}else{
					wx.showToast({
						title:'手机号输入错误',
						icon:'none'
					})
				}
				
				
			}
		}
	}
</script>

<style>
	.xia{
		background-color: red;
	}
	.q{
		width: 600rpx;
		margin: 0 auto;
		margin-top: 10rpx;
		margin-bottom: 10rpx;
	}
</style>